﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TabBar Test Page</title>
<script src="dollar.js"></script>
<style>
body{
	font-size: 12px;
}
#content-wrapper{
width:500px;
height:400px;
overflow:auto;
position:relative;
border:1px solid #000;
}
#loading{
position:absolute;
left:0;
top:0;
background:#fff;
opacity:0.8;
filter:alpha(opacity=80);
width:100%;
height:100%;
}
</style>
</head>
<body>
	<div id="content-wrapper">
		<div id="loading" style="display:none">加载中...</div>
		<div id="content">
		</div>
	</div>
	<a href="javascript:void(0)" onclick="test()">加载</a>
	<script>
		function test() {
			$('#loading').show();
			alert(1);
			$('url:doc.txt', {
				onSuccess : function (t) {
					$('#content').html(t.responseText);
					$('#loading').hide();
				}	
			});
		} 
	</script>
</body>
</html>